package com.chai.factory;
/**
 * 工厂类：创建User对象
 * */

import com.chai.service.BookService;
import com.chai.service.impl.BookServiceImpl;

public class BookFactory {
    /**静态方法获取对象*/
    public static BookService getBookService(){
        return new BookServiceImpl();
    }
    /**普通方法获取对象*/
    public BookService getService(){
        return new BookServiceImpl();
    }
}
